package cn.itcast.service.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.itcast.dao.PersonDao;
import cn.itcast.service.PersonService;

@Service @Scope("prototype")
public class PersonServiceBean implements PersonService {
	//@Autowired(required=false) @Qualifier("personDaoxxx")
	@Resource
	private PersonDao personDao;
	
	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}

	public PersonServiceBean() {
	}

	public void save() {
		personDao.add();
	}
	
}












